package com.warehouse.mapper;

import com.warehouse.dto.Warehousing;
import com.warehouse.dto.Warelike;
import com.warehouse.entity.ProType;
import com.warehouse.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
@Repository
public interface ProductMapper {
    
    //入库管理的
    List<Warehousing> selectLikePro(@Param("wareId") String wareId, @Param("supId") String supId,
                                    @Param("proId") String proId, @Param("proName") String proName);
    //出库管理
    List<Warehousing> selectOutWare(@Param("wareId") String wareId, @Param("supId") String supId,
                                    @Param("proId") String proId, @Param("proName") String proName);

    //对商品进行入库
    int inWarePro(@Param("proId") String proId);

    //对商品进行出库
    int outWarePro(String proId);


}